/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package programas;

/**
 *
 * @author Administrador
 */
import java.util.*;
public class numero10 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
         Scanner sc = new Scanner(System.in);
        int a, b, c, d, g1, g2,re,re2;
        System.out.println("introduce 4 valores para la comparacion");
      a=sc.nextInt();
         b=sc.nextInt();
        c=sc.nextInt();
        
        d=sc.nextInt();
        g1=Math.max(a, b);
        g2=Math.max(c, d);
        re=Math.max(g1, g2);
        System.out.println("el maximo es"+re);
        g1=Math.min(a, b);
        g2=Math.min(c, d);
        re2=Math.min(g1, g2);
        System.out.println("el minimo es"+re2);
    }

}
